package com.xing.service;

import com.xing.pojo.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface BookService {

    //添加书籍
     boolean save(Book book);
    //修改书籍
     boolean update(Book book);
    //删除书籍
     boolean delete(Integer id);
    //根据id查询书籍
     Book getBookById(Integer id);
    //查询所有书籍
     List<Book> getBookList();
}
